package controller.login;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/jump")
public class LoginJumpController {
	 /**
	  * 跳转到登录页
	  * @return String
	  */
	 @RequestMapping("/index")
	 public String jumpLogin(String message, Model model){
		 model.addAttribute("message", message);
		return "index";
	}
	 
	 /**
	  * 跳转到首页
	  * @return String
	  */
	 @RequestMapping("/home")
	 public String jumpHome(){
		return "home";
	}
	 /**
	  * 跳转到欢迎页
	  * @return String
	  */
	 @RequestMapping("/welcome")
	 public String welcome(){
		return "welcome";
	}
	 /**
	  * 没有验证，跳转到登录页
	  * @return 
	  */
	 @RequestMapping("/unauthorized")
	 public String unauthorized(){
		return "redirect:index";
	}
}
